package com.itheima.d3_collection_test.Exercise;

/**
 * @ClassName card
 * @Author 16799
 * @Date 2025/8/9 22:02
 * @Version 1.0
 * @Description TODO
 **/
public class card {
    private String number;
    private String color;
    private int size;

    public card() {
    }

    /*不重写tostring方法直接输出就是输出对象地址
    新牌： [com.itheima.d3_collection_test.Exercise.card@682a0b20, com.itheima.d3_collection_test.Exercise.card@3d075dc0, com.itheima.d3_collection_test.Exercise.card@214c265e, com.itheima.d3_collection_test.Exercise.card@448139f0, com.itheima.d3_collection_test.Exercise.card@7cca494b,
    com.itheima.d3_collection_test.Exercise.card@7ba4f24f, com.itheima.d3_collection_test.Exercise.card@3b9a45b3, com.itheima.d3_collection_test.Exercise.card@7699a589, com.itheima.d3_collection_test.Exercise.card@58372a00, com.itheima.d3_collection_test.Exercise.card@4dd8dc3,
     com.itheima.d3_collection_test.Exercise.card@6d03e736, com.itheima.d3_collection_test.Exercise.card@568db2f2, com.itheima.d3_collection_test.Exercise.card@378bf509, com.itheima.d3_collection_test.Exercise.card@5fd0d5ae, com.itheima.d3_collection_test.Exercise.card@2d98a335,
     com.itheima.d3_collection_test.Exercise.card@16b98e56, com.itheima.d3_collection_test.Exercise.card@7ef20235, com.itheima.d3_collection_test.Exercise.card@27d6c5e0, com.itheima.d3_collection_test.Exercise.card@4f3f5b24, com.itheima.d3_collection_test.Exercise.card@15aeb7ab, com.itheima.d3_collection_test.Exercise.card@7b23ec81, com.itheima.d3_collection_test.Exercise.card@6acbcfc0, com.itheima.d3_collection_test.Exercise.card@5f184fc6, com.itheima.d3_collection_test.Exercise.card@3feba861, com.itheima.d3_collection_test.Exercise.card@5b480cf9, com.itheima.d3_collection_test.Exercise.card@6f496d9f, com.itheima.d3_collection_test.Exercise.card@723279cf, com.itheima.d3_collection_test.Exercise.card@10f87f48, com.itheima.d3_collection_test.Exercise.card@b4c966a, com.itheima.d3_collection_test.Exercise.card@2f4d3709, com.itheima.d3_collection_test.Exercise.card@4e50df2e, com.itheima.d3_collection_test.Exercise.card@1d81eb93, com.itheima.d3_collection_test.Exercise.card@7291c18f, com.itheima.d3_collection_test.Exercise.card@34a245ab, com.itheima.d3_collection_test.Exercise.card@7cc355be, com.itheima.d3_collection_test.Exercise.card@6e8cf4c6, com.itheima.d3_collection_test.Exercise.card@12edcd21, com.itheima.d3_collection_test.Exercise.card@34c45dca,
      com.itheima.d3_collection_test.Exercise.card@52cc8049, com.itheima.d3_collection_test.Exercise.card@5b6f7412, com.itheima.d3_collection_test.Exercise.card@27973e9b, com.itheima.d3_collection_test.Exercise.card@312b1dae, com.itheima.d3_collection_test.Exercise.card@7530d0a, com.itheima.d3_collection_test.Exercise.card@27bc2616, com.itheima.d3_collection_test.Exercise.card@3941a79c, com.itheima.d3_collection_test.Exercise.card@506e1b77, com.itheima.d3_collection_test.Exercise.card@4fca772d, com.itheima.d3_collection_test.Exercise.card@9807454, com.itheima.d3_collection_test.Exercise.card@3d494fbf, com.itheima.d3_collection_test.Exercise.card@1ddc4ec2, com.itheima.d3_collection_test.Exercise.card@133314b, com.itheima.d3_collection_test.Exercise.card@b1bc7ed, com.itheima.d3_collection_test.Exercise.card@7cd84586, com.itheima.d3_collection_test.Exercise.card@30dae81]

    @Override
    public String toString() {
        return color+number;
    }*/

    @Override
    public String toString(){
        return color+number;
    }

    public card(String number, String color, int size) {
        this.number = number;
        this.color = color;
        this.size = size;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
